#ifndef VIEWGAME_H
#define VIEWGAME_H
#include "includes.h"
#include "glwindow.h"
#include "rendermanager.h"
#include "View.h"
#include "Drawing.h"
#include "GameEngine.h"

#define ROT_SPEED 0.1

class ViewGame : public virtual View
{
    int timerID;
    GameEngine* gameEng;
    RenderManager* rend;
    GlobalStates* globals;
    ViewGame();
    float tbPrevX,tbPrevY, xDelta, yDelta, accX, accY;
public:
    static View* getInstance();
    void display();
    void overlayDisplay();
    void init();
    void destroy();
    void resize(int width, int height);
    Result mousePressEvent(QMouseEvent *event);
    Result mouseMoveEvent(QMouseEvent *event);
    Result mouseReleaseEvent(QMouseEvent *event);
    Result keyPressEvent(QKeyEvent *event);
    Result keyReleaseEvent(QKeyEvent *event);
    void timerEvent(QTimerEvent *event);
};

#endif // VIEWGAME_H
